﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Yto.Common.Dependency;
using Yto.Repositories;

namespace com.ytocargo.Core.AirCraftInfos
{
    public class AirCraftInfoStore : IAirCraftInfoStore, ITransient
    {
        private readonly IBaseRepository<AirCraftInfo, string> _rep;

        public AirCraftInfoStore(IBaseRepository<AirCraftInfo, string> repository)
        {
            _rep = repository;
        }

        public IQueryable<AirCraftInfo> GetAll()
        {
            return _rep.GetAll();
        }

        public List<AirCraftInfo> GetAllList()
        {
            return GetAll().ToList();
        }
    }
}
